
         var mouseX,mouseY;
         var chasingMouse = autoAppearing = itemFollowingMove = null;
         $(document).ready(function(){
            mouseX = event.clientX || 0;
            mouseY = event.clientY || 0;
             $('body').mousemove(function(event){
                 mouseX = event.clientX;
                 mouseY = event.clientY;
             })
             chasingMouse = setInterval(function(){
                 for(var n = 0;n < $('.needHover').length;n++){
                     var ele_h = $('.needHover')[n].offsetHeight;
                     var ele_w = $('.needHover')[n].offsetWidth;
                     var targetTop = mouseY - $('.needHover')[n].getBoundingClientRect().top;
                     var targetLeft = mouseX - $('.needHover')[n].getBoundingClientRect().left;
                     
                     if((targetLeft < 0 || targetLeft > ele_w) || (targetTop < 0 || targetTop > ele_h)){
                         if($('.needHover')[n].className.indexOf('hoverFather') >= 0){
                             var son_h = $('.needHover:eq(' + n + ') .hoverSon')[0].offsetHeight;
                             var son_w = $('.needHover:eq(' + n + ') .hoverSon')[0].offsetWidth;
                             var sonTop = mouseY - $('.needHover:eq(' + n + ') .hoverSon')[0].getBoundingClientRect().top;
                             var sonLeft = mouseX - $('.needHover:eq(' + n + ') .hoverSon')[0].getBoundingClientRect().left;
                             if((sonLeft < 0 || sonLeft > son_w) || (sonTop < 0 || sonTop > son_h)){
                                 if($('.needHover')[n].className.indexOf('mouseOn') < 0) continue;
                                 $('.needHover:eq(' + n +')').removeClass('mouseOn');
                             }else{
                                 if($('.needHover')[n].className.indexOf('mouseOn') >= 0) continue;
                                 $('.needHover:eq(' + n +')').addClass('mouseOn');
                             }
                         }else{
                             if($('.needHover')[n].className.indexOf('mouseOn') < 0) continue;
                             $('.needHover:eq(' + n +')').removeClass('mouseOn');
                         }
                     }else{//if((targetLeft > 0 && targetLeft < ele_w) && (targetTop > 0 && targetTop < ele_h))
                         if($('.needHover')[n].className.indexOf('mouseOn') >= 0) continue;
                         $('.needHover:eq(' + n +')').addClass('mouseOn');
                     }
                 }
                 
             },10);
            })